-- GENERATED SPELL FOR [Wailing Death] --


function spell0_1804(pUnit, Event) --@Wailing Dead,Self--
pUnit:FullCastSpellOnTarget(7713,pUnit)
pUnit:RegisterEvent('Sorts_1804', 6323, 1)
end

function Sorts_1804(pUnit, Event)
local choix_sorts_1804 = math.random(0, 0)
if choix_sorts_1804 == 0 then
pUnit:RegisterEvent('spell0_1804', 1, 1)
end
end

function mob1804_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_1804', math.random(1500, 3000), 1)
end

function mob1804_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob1804_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob1804_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(1804, 1, 'mob1804_Action')
RegisterUnitEvent(1804, 2, 'mob1804_Leave')
RegisterUnitEvent(1804, 3, 'mob1804_Kill')
RegisterUnitEvent(1804, 4, 'mob1804_Die')
